package com.lc.sell.service;

import com.lc.sell.entity.Merchant;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lc.sell.vo.ResultVo;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 龙晨
 * @since 2022-02-01
 */
public interface MerchantService extends IService<Merchant> {
    // 查询所有店铺商品信息
    ResultVo findAll();
    //  按条件查询商品信息
    ResultVo findByMerchant(Merchant merchant,String one,String two);
    //添加商家信息
    ResultVo addMerchant(Merchant merchant);
    //删除商家
    ResultVo deleteMerchant(Integer id);
    //修改商家信息
    ResultVo updateMerchant(Merchant merchant);
    //查询商家
    ResultVo findByMerchantId(Integer id);
    //所有商家
    ResultVo findAllMerchant(long current, long size);
    //隐藏商家
    ResultVo showMerchant(Integer id);
    //商家登录
    ResultVo toLogin(HttpServletRequest request,String username , String password);
}
